﻿<%@ Page Language="c#" CodeBehind="ManageStyle.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlowPages.ManageStylePage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>文档流转 - 表单管理</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script language="javascript">
    //<!--
    function delete_confirm(e) {
      if (event.srcElement.outerText == "删除")
        event.returnValue = confirm("您确认要删除?");
    }
    document.onclick = delete_confirm;
    //-->
  </script>
</head>
<body>
  <form id="ManageStyle" method="post" runat="server">
    <uds:PageTitle runat="server" Title="表单管理">
      <uds:RedirectButton runat="server" Text="新增表单" RedirectUrl="EditStyle.aspx" CssClass="redbuttoncss optionbutton" />
      <uds:RedirectButton runat="server" Text="返回" RedirectUrl="Listview.aspx" CssClass="redbuttoncss optionbutton" />
    </uds:PageTitle>
    <uds:UDSDataGrid ID="dgStyleList" runat="server" OnPageIndexChanged="DataGrid_PageChanged" DataKeyField="ID" OnDeleteCommand="MyDataGrid_Delete">
      <Columns>
        <asp:TemplateColumn HeaderText="ID">
          <HeaderStyle Width="2%" />
          <ItemTemplate>
            <asp:CheckBox ID="cboStyleID" runat="server" />
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn DataNavigateUrlField="ID" DataNavigateUrlFormatString="EditStyle.aspx?StyleID={0}" DataTextField="Name" HeaderText="表单名">
          <HeaderStyle Width="20%" />
        </asp:HyperLinkColumn>
        <asp:BoundColumn DataField="Description" HeaderText="表单介绍">
          <HeaderStyle Width="40%" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Template" HeaderText="模板">
          <HeaderStyle HorizontalAlign="Left" Width="25%" />
          <ItemStyle HorizontalAlign="Left" />
          <FooterStyle HorizontalAlign="Left" />
        </asp:BoundColumn>
        <asp:HyperLinkColumn Text="管理" DataNavigateUrlField="ID" DataNavigateUrlFormatString="DefineStyle.aspx?StyleID={0}" HeaderText="管理">
          <HeaderStyle HorizontalAlign="Center" Width="6%" />
          <ItemStyle HorizontalAlign="Center" />
        </asp:HyperLinkColumn>
        <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
          <HeaderStyle HorizontalAlign="Center" Width="5%" />
          <ItemStyle HorizontalAlign="Center" />
        </asp:ButtonColumn>
      </Columns>
    </uds:UDSDataGrid>
  </form>
</body>
</html>
